.kongimg {
  width: 40%;
  display: block;
  margin: 40rpx auto;
  margin-top: 200rpx
}

.kongword {
  margin-top: 20rpx;
  text-align: center
}

page {
  background: #fdfdfd;
}

.content {
  display: -webkit-box;
  /* 使用flexbox布局 */
  -webkit-box-orient: vertical;
  /* 垂直方向排列 */
  -webkit-line-clamp: 2;
  /* 限制显示行数 */
  overflow: hidden;
  /* 隐藏超出部分 */
  text-overflow: ellipsis;
  /* 显示省略号 */
  word-break: break-all;
  /* 允许单词内换行 */
}

.service-page {
  min-height: 100vh;
  position: relative;


  .bg {
    width: 100%;
  }

  .header {
    position: fixed;
    padding: 10rpx 32rpx 0px;
    color: #fff;
    border-radius: 0 0 32rpx 32rpx;
    top: calc(env(safe-area-inset-top) + 150rpx);
    left: 0;
    right: 0;

    .company {
      margin-bottom: 32rpx;
      display: flex;
      align-items: center;

      .logo {
        width: 44px;
        height: 44px;
        margin-right: 16rpx;
        border-radius: 50%;
      }

      .right {
        display: flex;
        flex-direction: column;
        color: #fff;
      }

      .name {
        font-size: 36rpx;
        font-weight: bold;
        margin-bottom: 8rpx;
        display: block;
      }

      .desc {
        font-size: 24rpx;
      }
    }

    .service-cards {
      display: flex;
      gap: 24rpx;
      margin-bottom: 32rpx;

      .card {
        flex: 1;
        background: rgba($color: #fff, $alpha: 0.15);
        border-radius: 16rpx;
        padding: 24rpx;
        height: 60px;
        overflow: hidden;
        box-sizing: border-box;
        position: relative;
        display: flex;
        align-items: center;

        .icon {
          width: 24px;
          height: 24px;
          padding: 10px;
          background: rgba(255, 255, 255, 0.1);
          border-radius: 10px;
          margin-right: 16rpx;
        }

        .info {
          display: flex;
          flex-direction: column;
        }

        .title {
          font-size: 28rpx;
          font-weight: bold;
        }

        .subtitle {
          font-size: 24rpx;
          opacity: 0.5;
        }
      }
    }

    .tab-bar {
      display: flex;

      .tab-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 16rpx 0;
        position: relative;
        font-size: 24rpx;

        .text {
          margin-bottom: 3px;
        }

        &.active {
          .text {
            font-size: 32rpx;
            font-weight: bold;
            color: #fff;
          }

          .count {
            font-weight: bold;
            color: #fff;
          }

          &::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 6rpx;
            background: #fff;
          }
        }
      }
    }
  }

  .main-container {
    position: fixed;
    bottom: 0;
    top: 274px;
    overflow: hidden;
    left: 0;
    right: 0;
  }

  .service-list {
    padding: 24rpx;

    .service-item {
      background: #fff;
      border-radius: 16rpx;
      padding: 24rpx;
      margin-bottom: 24rpx;

      .company-info {
        display: flex;
        flex-direction: row;
        margin-bottom: 24rpx;

        .logo {
          width: 40px;
          height: 40px;
          border-radius: 4px;
          margin-right: 10px;
        }

        .left {
          display: flex;
          flex-direction: column;
          justify-content: center;
          flex: 1;

          .maintainer {
            .label {
              font-size: 26rpx;
              margin-right: 16rpx;
            }

            .value {
              font-size: 26rpx;
            }
          }

          .name {
            font-size: 28rpx;
            color: #333;
          }
        }

        .right {
          display: flex;
          align-items: self-start;
          justify-content: flex-end;
        }

        .status {
          font-size: 24rpx;

          &.wait-paid {
            color: #ff4d4f;
            background-color: rgba(#ff4d4f, 0.4);
            padding: 2px 4px;
          }

          &.pending {
            color: #058aff;
            background-color: rgba(#058aff, 0.4);
            padding: 2px 4px;
          }

          &.wait {
            color: #058aff;
            background-color: rgba(#058aff, 0.4);
            padding: 2px 4px;
          }

          &.finish {
            color: #5c9ead;
            background-color: rgba(#5c9ead, 0.4);
            padding: 2px 4px;
          }

          &.clears {
            color: #000000;
            background-color: rgba(#909090, 0.4);
            padding: 2px 4px;
          }
        }
      }

      .desc {
        color: #343a40;
        display: flex;
        flex: 1;
        flex-direction: row;
        align-items: top;
        margin-bottom: 16rpx;

        .title {
          width: 100px;
          text-align: left;
        }

        .content {
          flex: 1;
          text-align: left;
        }
      }

      .gallery {
        width: 100%;
        display: flex;
        overflow: hidden;
        height: 144rpx;
        margin-bottom: 28rpx;

        .scroll-gallery {
          display: flex;
          flex: 1;
          overflow: hidden;
        }

        .images {
          display: flex;
          flex-wrap: nowrap;

          image {
            height: 144rpx;
            margin-right: 10px;
          }
        }

        .money-wrapper {
          height: 144rpx;
          width: 67px;
          background-color: #f2f2f2;
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          color: #adb5bd;
          font-size: 14px;

          .price {
            color: #000;
          }
        }
      }

      .actions {
        margin-top: 20px;
        display: flex;
        justify-content: flex-end;

        .btn {
          display: flex;
          align-items: center;
          justify-content: center;
          height: 30px;
          width: 76px;
          text-align: center;
          border-radius: 10rpx;
          font-size: 24rpx;
          color: #343a40;
          box-sizing: border-box;
          margin: 0;
          padding: 0;
          background-color: #fff;
          border: 1px solid #adb5bd;
          margin-left: 10px;

          &.primary {
            background: linear-gradient(to right, #058aff, #00c1ff);
            border-color: transparent;
            color: #fff;
          }
        }
      }
    }
  }
}